package com.xiaojiezhu.shiro.base.pool;

import java.io.Closeable;
import java.io.IOException;

/**
 * @Author 朱小杰
 * 时间 2017-08-07 .23:32
 * 说明 ...
 */
public class Connection implements Closeable {
    private boolean enable = true;

    public void send(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName() + " send -- over");
    }

    @Override
    public void close() throws IOException {

    }
    public boolean isEnable(){
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
